import numpy as np

# 加载权值矩阵
weights = np.load('bp_weights.npz')

# 提取第一个隐藏层的权值矩阵
W1 = weights['arr_0']

# 提取第二个隐藏层的权值矩阵
W2 = weights['arr_1']

# 打印权值矩阵
print("W1:", W1)
print("W2:", W2)
